﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace RealWorld
{
    /// <summary>
    ///  The 'ConcreteBuilder1' class
    /// </summary>
    class CarBuilder: VehicleBuilder
    {
        public CarBuilder()
        {
            vehicleObj = new Vehicle("Car");
        }

        public override void BuildFrame()
        {
            vehicleObj["frame"] = "Car frame";
        }

        public override void BuildEngine()
        {
            vehicleObj["engine"] = "2500 cc";
        }

        public override void BuildWheels()
        {
            vehicleObj["wheels"] = "4";
        }

        public override void BuildDoors()
        {
            vehicleObj["doors"] = "4";
        }
    }
}
